package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class PWDemo2 {
    public static void main(String[] args) throws FileNotFoundException {
        FileOutputStream fos=new FileOutputStream("pw2.txt");

        OutputStreamWriter osw=new OutputStreamWriter(fos, StandardCharsets.UTF_8);
        BufferedWriter bw=new BufferedWriter(osw);

        PrintWriter pw=new PrintWriter(bw);

        pw.println("敢来南宁指定没你好果汁吃");
        pw.println("小亮,给他整个活");
        System.out.println("输出完毕");
        pw.close();
    }
}
